<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <introduce :title="msg"></introduce>
        <hr>
        <for-component :items="lessons"></for-component>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script type="text/javascript" >
        Vue.component("introduce",{
           template:'<h3>{{title}}</h3>',
            props:['title']
        });
         Vue.component("forComponent",{
           template:'<ul><li v-for="item in items">{{item}}</li></ul>',
            props:{
               items:{
                   type:Array,
                   default:['java']
               }
            }
        });


    	var vm = new Vue({
            el:'#app',
            data:{
             msg:'222',
             lessons:['java','c++','python']
            },

        });
    </script>
</body>
</html>